
package com.insigma.business.qrcode.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.insigma.business.qrcode.common.vo.ToString;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Setter
@Getter
public class BaseDO<PK extends Serializable, CID extends Serializable, MID extends Serializable> extends
        ToString {

    private static final long serialVersionUID = 1L;

    
    private PK id;

    
    private Boolean deleted = false;

    
    private CID creatorId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDatetime;

    
    private MID modifierId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDatetime;

}
